<template>
  <div class="aiseo-home-dataArr">
    <ul class="dataArr-content">
      <li v-for="(item, index) in dataArr" :key="index">
        <div class="item-number">{{ item.count }}</div>
        <div class="item-data-info">
          <!-- <svg-icon
            class="data-icon"
            color="red"
            :iconName="item.iconName"
          ></svg-icon> -->
          <img class="data-icon" :src="item.icon" alt="">
          <span class="data-info-title">{{ item.title }}</span>
        </div>
      </li>
    </ul>
  </div>
</template>

<script setup>
import { ref } from "vue";
import icon1 from "@/assets/image/pageHome/icon1.png";
import icon2 from "@/assets/image/pageHome/icon2.png";
import icon3 from "@/assets/image/pageHome/icon3.png";
import icon4 from "@/assets/image/pageHome/icon4.png";
import icon5 from "@/assets/image/pageHome/icon5.png";


const dataArr = ref([
  {
    title: "累计发文",
    count: '50W+',
    iconName: "icon-file",
    icon: icon1
  },
  {
    title: "关键词定制",
    count: '10W+',
    iconName: "icon-a-2",
    icon: icon2
  },
  {
    title: "服务网站",
    count: '1000+',
    iconName: "icon-wangzhanguanli",
    icon: icon3
  },
  {
    title: "合作媒体",
    count: '8000+',
    iconName: "icon-men",
    icon: icon4
  },
  {
    title: "服务企业",
    count: '800+',
    iconName: "icon-qiye",
    icon: icon5
  },
]);
</script>

<style lang="scss" scoped>
.aiseo-home-dataArr {
  width: 100%;
  height: 304px;
  background: #f5f5f5;
  .dataArr-content {
    width: $aiseoHomeWidth;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
    li {
      flex: 1;
      height: 455px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .item-number {
        text-align: center;
        font-weight: bold;
        font-size: 64px;
        color: #1a1a1a;
        position: relative;
        font-family: Alibaba PuHuiTi-Bold;
        &::after {
          content: "";
          display: block;
          position: absolute;
          width: 205px;
          height: 60px;
          bottom: 14px;
          background: url(@/assets/image/pageHome/homepage-data_card-cover@2x.png);
          background-size: contain;
        }
      }
      .item-data-info {
        width: 100%;
        background: #f5f5f5;
        display: flex;
        justify-content: center;
        line-height: 32px;
        position: relative;
        .data-icon {
         width: 32px;
        }
        .data-info-title {
          font-family: Alibaba PuHuiTi-Bold, Alibaba PuHuiTi-Bold;
          font-weight: bold;
          font-size: 24px;
          color: #1a1a1a;
          text-align: center;
          margin-left: 4px;
        }
      }
    }
  }
}
</style>
